module.exports = (sequelize, DataTypes) => {
  const model = sequelize.define(
    "UserRole",
    {
      userId: {
        type: DataTypes.UUID,
        primaryKey: true,
      },
      roleId: {
        type: DataTypes.UUID,
        primaryKey: true,
      },
    },
    {
      timestamps: false,
      tableName: "associate_user_role",
      comment: "用户角色关联表",
    }
  );
  return model;
};
